package unit6.part5;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class HashMapTreeMap {
    public static void main(String[] args) {
        Map<Integer, String> m1 = new HashMap<>(3);
        m1.put(90, "ZhangSan");
        m1.put(150, "LiSi");
        m1.put(200, "WangWu");
        System.out.println(m1);

        Map<Integer, String> m2 = new TreeMap<>();
        m2.put(90, "ZhangSan");
        m2.put(150, "LiSi");
        m2.put(200, "WangWu");
        System.out.println(m2);
    }
}
